# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perlio-via-dynamic
pkgver=0.14
pkgrel=10
pkgdesc="Perl/CPAN Module PerlIO::via::dynamic"
arch=("any")
url="https://search.cpan.org/dist/PerlIO-via-dynamic"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/PerlIO-via-dynamic-$pkgver.tar.gz")
md5sums=('c1f33e4c4612ef7023545f4f94ee7c56')
sha256sums=('8acd7af4d8af21d28b9c15ae137fe76cd064dad7d26eba8a30b97ebc6e1f6b49')

build() {
  cd "$srcdir"/PerlIO-via-dynamic-$pkgver
  PERL_USE_UNSAFE_INC=1 \
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/PerlIO-via-dynamic-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
